import requests


# from fake_useragent import UserAgent
# ua = UserAgent()
# headers = {
#     'user-agent':ua.random,
# }
# response = requests.get(' http://127.0.0.1:8000/useragent/',headers=headers)
#
# print(response.text)


# headers = {
#     'user-agent':'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36',
#
# }
# cookies = {
#     'sessionid':'session',
# }
# response = requests.get(' http://127.0.0.1:8000/cookies/',headers=headers,cookies=cookies)
#
# print(response.text)
headers = {
    'Referer': "http://127.0.0.1:8000/",
}
res = requests.get("http://127.0.0.1:8000/referer/",headers=headers)



print(res.text)